class Box1 {
  constructor(){
      this.x = 0;
      this.y = 0
  }
  updatePosition(x,y){

  }

}

let doms = {
  box1Dom:document.querySelector('.box1'),
  box2Dom:document.querySelector('.box2'),
  cantainDom:document.querySelector('.cantainer')
}